﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace BPM.Web.Shared.Data;

public partial class AddDictDataInput : BaseVM
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [DisplayName("业务号")]
    [Required(ErrorMessage = "业务号不能为空")]
    [JsonPropertyName("id")]
    public long Id { get; set; }

    /// <summary>
    /// 字典类型Id
    /// </summary>
    [DisplayName("字典类型Id")]
    [JsonPropertyName("typeId")]
    public long TypeId { get; set; }

    /// <summary>
    /// 值
    /// </summary>
    [DisplayName("值")]
    [JsonPropertyName("value")]
    [Required(ErrorMessage = "值不能为空")]
    public string? Value { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    [DisplayName("编码")]
    [JsonPropertyName("code")]
    [Required(ErrorMessage = "编码不能为空")]
    public string? Code { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    [DisplayName("排序")]
    [JsonPropertyName("sort")]
    public int Sort { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [DisplayName("备注")]
    [JsonPropertyName("remark")]
    public string? Remark { get; set; }

    [JsonPropertyName("status")]
    public CommonStatus Status { get; set; }

}
